a=input("请输入字符串:")
print(len(a))

length=0
for i in a:
    length+=1
print(f'字符串长度为:{length}')